-
Notifications
You must be signed in to change notification settings - Fork 386
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CLDR-17535 Ensure testData is good for likelySubtags #3977
CLDR-17535 Ensure testData is good for likelySubtags #3977
Conversation
After adding the test, the current failures are the following, so need to track those down.
|
If the tests pass, this should fix the problem, @DraganBesevic . |
I have just pushed a PR for alpha2 integration, with this problem tagged as a known issue. I will regenerate the test data for likely subtags, remove the known issue in the next round of integration and see if that works. |
@DraganBesevic sounds great, hope it works! |
CLDR-17535
The ICU integration was failing, so adding a test to verify the testData we generate, then will fix errors.
The problem was in two overrides, where a source subtag was being overridden. The solution was to change 2 lines in tools/cldr-code/src/main/java/org/unicode/cldr/tool/GenerateLikelySubtags.java that were mapping 001 to US, and add a test in tools/cldr-code/src/test/java/org/unicode/cldr/unittest/LikelySubtagsTest.java that if you have
lang_script_region => lang2_script2_region2
then
I also semi-removed GenerateLikelySubtagTests.java, because the name is confusing; people could think that is what is used to generate the test data. I didn't just remove it, because it is unclear whether we can do without it or not, but trying to run it will cause an exception, alerting us to that.
ALLOW_MANY_COMMITS=true